﻿using Core.DomainServices;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;

namespace Insfrastructure.DomainServices
{
    public class WebClientService : IWebClientService
    {
        public string GetDataFromUrl(string url)
        {
            string result = string.Empty;
            try
            {
                using (var wc = new WebClient())
                {
                    result = wc.DownloadString(url);
                }
            }
            catch { }

            return result;
        }
    }
}
